package com.lcf.deepseek.model;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author lcf
 */
@Data
@NoArgsConstructor
public class DeepSeekResponse {
    private String id;
    private String object;
    private long created;
    private String model;
    private List<Choice> choices;
    private Usage usage;

    @Data
    @NoArgsConstructor
    public static class Choice {
        private int index;
        private DeepSeekMessage message;
    }

    @Data
    @NoArgsConstructor
    public static class Usage {
        private int prompt_tokens;
        private int completion_tokens;
        private int total_tokens;
        private promptTokensDetails prompt_tokens_details;
        private int system_fingerprint;
    }

    @Data
    @NoArgsConstructor
    public static class promptTokensDetails {
        private int cached_tokens;
        private int prompt_cache_hit_tokens;
        private int prompt_cache_miss_tokens;
    }
}
